//
// CFarVertexBufferInfo.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CFarVertexBufferInfo {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CFarVertexBufferInfo(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CFarVertexBufferInfo obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CFarVertexBufferInfo(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CVertexBufferReadWrite getAccessor() {
    long cPtr = nel3dJNI.CFarVertexBufferInfo_Accessor_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CVertexBufferReadWrite(cPtr, false);
  }

  public void setVertexFormat(long value) {
    nel3dJNI.CFarVertexBufferInfo_VertexFormat_set(swigCPtr, this, value);
  }

  public long getVertexFormat() {
    return nel3dJNI.CFarVertexBufferInfo_VertexFormat_get(swigCPtr, this);
  }

  public void setVertexSize(long value) {
    nel3dJNI.CFarVertexBufferInfo_VertexSize_set(swigCPtr, this, value);
  }

  public long getVertexSize() {
    return nel3dJNI.CFarVertexBufferInfo_VertexSize_get(swigCPtr, this);
  }

  public void setNumVertices(long value) {
    nel3dJNI.CFarVertexBufferInfo_NumVertices_set(swigCPtr, this, value);
  }

  public long getNumVertices() {
    return nel3dJNI.CFarVertexBufferInfo_NumVertices_get(swigCPtr, this);
  }

  public void setVertexCoordPointer(SWIGTYPE_p_void value) {
    nel3dJNI.CFarVertexBufferInfo_VertexCoordPointer_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
  }

  public SWIGTYPE_p_void getVertexCoordPointer() {
    long cPtr = nel3dJNI.CFarVertexBufferInfo_VertexCoordPointer_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
  }

  public void setTexCoordPointer0(SWIGTYPE_p_void value) {
    nel3dJNI.CFarVertexBufferInfo_TexCoordPointer0_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
  }

  public SWIGTYPE_p_void getTexCoordPointer0() {
    long cPtr = nel3dJNI.CFarVertexBufferInfo_TexCoordPointer0_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
  }

  public void setTexCoordPointer1(SWIGTYPE_p_void value) {
    nel3dJNI.CFarVertexBufferInfo_TexCoordPointer1_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
  }

  public SWIGTYPE_p_void getTexCoordPointer1() {
    long cPtr = nel3dJNI.CFarVertexBufferInfo_TexCoordPointer1_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
  }

  public void setColorPointer(SWIGTYPE_p_void value) {
    nel3dJNI.CFarVertexBufferInfo_ColorPointer_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
  }

  public SWIGTYPE_p_void getColorPointer() {
    long cPtr = nel3dJNI.CFarVertexBufferInfo_ColorPointer_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
  }

  public void setTexCoordOff0(long value) {
    nel3dJNI.CFarVertexBufferInfo_TexCoordOff0_set(swigCPtr, this, value);
  }

  public long getTexCoordOff0() {
    return nel3dJNI.CFarVertexBufferInfo_TexCoordOff0_get(swigCPtr, this);
  }

  public void setTexCoordOff1(long value) {
    nel3dJNI.CFarVertexBufferInfo_TexCoordOff1_set(swigCPtr, this, value);
  }

  public long getTexCoordOff1() {
    return nel3dJNI.CFarVertexBufferInfo_TexCoordOff1_get(swigCPtr, this);
  }

  public void setColorOff(long value) {
    nel3dJNI.CFarVertexBufferInfo_ColorOff_set(swigCPtr, this, value);
  }

  public long getColorOff() {
    return nel3dJNI.CFarVertexBufferInfo_ColorOff_get(swigCPtr, this);
  }

  public void setGeomInfoPointer(SWIGTYPE_p_void value) {
    nel3dJNI.CFarVertexBufferInfo_GeomInfoPointer_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
  }

  public SWIGTYPE_p_void getGeomInfoPointer() {
    long cPtr = nel3dJNI.CFarVertexBufferInfo_GeomInfoPointer_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
  }

  public void setDeltaPosPointer(SWIGTYPE_p_void value) {
    nel3dJNI.CFarVertexBufferInfo_DeltaPosPointer_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
  }

  public SWIGTYPE_p_void getDeltaPosPointer() {
    long cPtr = nel3dJNI.CFarVertexBufferInfo_DeltaPosPointer_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
  }

  public void setAlphaInfoPointer(SWIGTYPE_p_void value) {
    nel3dJNI.CFarVertexBufferInfo_AlphaInfoPointer_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
  }

  public SWIGTYPE_p_void getAlphaInfoPointer() {
    long cPtr = nel3dJNI.CFarVertexBufferInfo_AlphaInfoPointer_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
  }

  public void setGeomInfoOff(long value) {
    nel3dJNI.CFarVertexBufferInfo_GeomInfoOff_set(swigCPtr, this, value);
  }

  public long getGeomInfoOff() {
    return nel3dJNI.CFarVertexBufferInfo_GeomInfoOff_get(swigCPtr, this);
  }

  public void setDeltaPosOff(long value) {
    nel3dJNI.CFarVertexBufferInfo_DeltaPosOff_set(swigCPtr, this, value);
  }

  public long getDeltaPosOff() {
    return nel3dJNI.CFarVertexBufferInfo_DeltaPosOff_get(swigCPtr, this);
  }

  public void setAlphaInfoOff(long value) {
    nel3dJNI.CFarVertexBufferInfo_AlphaInfoOff_set(swigCPtr, this, value);
  }

  public long getAlphaInfoOff() {
    return nel3dJNI.CFarVertexBufferInfo_AlphaInfoOff_get(swigCPtr, this);
  }

  public void setupVertexBuffer(CVertexBuffer vb, boolean forVertexProgram) {
    nel3dJNI.CFarVertexBufferInfo_setupVertexBuffer(swigCPtr, this, CVertexBuffer.getCPtr(vb), vb, forVertexProgram);
  }

  public void setupNullPointers() {
    nel3dJNI.CFarVertexBufferInfo_setupNullPointers(swigCPtr, this);
  }

  public CFarVertexBufferInfo() {
    this(nel3dJNI.new_CFarVertexBufferInfo(), true);
  }

}
